package cn.tedu.property.management.mapper;

import cn.tedu.property.management.pojo.vo.CommunityStandardVO;
import cn.tedu.property.management.pojo.entity.Community;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 *  处理小区业务数据的mapper
 */
@Repository
public interface CommunityMapper {
    int insert(Community community);
    int deleteById(Long id);
    int updateById(Community community);
    int countCommunityByName(String name);
    int countCommunityByAddress(String address);
    CommunityStandardVO getCommunityById(Long id);
    List<CommunityStandardVO> getCommunity();
}
